package com.bkhc.common.entity;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

@Entity
@Data
@Table(name = "tbl_lookup_t")
@EntityListeners(AuditingEntityListener.class)
public class Lookup {
    private static final long serialVersionUID = 1L;
    /**AccountController
     * id
     */
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Id
    private String id ;
    @Column(name = "item_code")
    private String itemCode ;

    @Column(name = "itemClass")
    private String itemClass;

    @Column(name = "item_name")
    private String itemName;

    @Column(name = "item_value")
    private String itemValue;

    @Column(name = "attr1")
    private String attr1;

    @Column(name = "attr2")
    private String attr2;

    @Column(name = "creator",updatable = false)
    private String creator;

    @Column(name = "create_date",updatable = false)
    @CreatedDate
    private Date createDate;

    @Column(name = "updator")
    private String updator;

    @LastModifiedDate
    @Column(name = "update_date")
    private Date updateDate;
    @Column(name = "sort")
    private int sort;
}
